using CoreShop.Model.FromBody;
using SqlSugar;
using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 用户表
    /// </summary>
    public partial class corecmsuser
    {
        /// <summary>
        ///     来源类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int type { get; set; }

        /// <summary>
        ///     下级用户数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int childNum { get; set; }

        /// <summary>
        ///     父级名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string parentNickName { get; set; }

        /// <summary>
        /// 推荐人(股东)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string staffName { get; set; }

        /// <summary>
        /// 会员等级
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string gradeName { get; set; }

        /// <summary>
        /// 手机号（中间位不显示）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string maskMobile { get; set; }

        /// <summary>
        /// 累计积分
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int totalPoint { get; set; }


        /// <summary>
        /// 累计消费
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal totalConsume { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal discountValue { get; set; } = 100;

        /// <summary>
        /// 优惠类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 discountType { get; set; } = 0;

        /// <summary>
        /// 会员卡号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string userNumber { get; set; }

        /// <summary>
        /// 累计积分
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int currentPoint { get; set; }

        /// <summary>
        /// 会员等级权益
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public VipLevelRightsModel VipLevelRightInfo { get; set; }

        /// <summary>
        /// 会员积分规则
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public GsVipPointRuleModel VipPointRuleInfo { get; set; }

        /// <summary>
        /// 会员储值卡信息
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public VipGrantCartModel VipGrantCartInfo { get; set; }

        /// <summary>
        /// 会员储值卡信息
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public GsPosVip gsPosVip { get; set; }        
    }
}